package czt.dm.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import czt.dm.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@DS("ZH-DB")
public interface ZHMapper {

    @Select("select * from ZH.STUDENT_ZH")
    List<Student> getStudents();

    @Insert("insert into ZH.STUDENT_ZH values (#{id},#{name},#{age},#{className},#{gender})")
    void insert(Student student);
}
